package com.xian.service;

import com.xian.dao.SysLogMapper;
import com.xian.pojo.SysLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysLogServiceImpl implements SysLogService{
    @Autowired
    private SysLogMapper sysLogMapper;
    public void save(SysLog sysLog) {
        sysLogMapper.save(sysLog);
    }

    // 查询全部日志
    public List<SysLog> findAll() {
       return sysLogMapper.findAll();
    }
}
